package io.netty.example.fep.netty;

import io.netty.example.fep.netty.client.NettyClient;

import java.util.concurrent.TimeUnit;

/**
 * Description：
 *
 * @author : chenjie03@imdada.cn
 * Date: 2020/5/25
 * Time: 17:20
 */
public class MyClient1Test {

    public static final String HOST = System.getProperty("host", "127.0.0.1");
    public static final int PORT = Integer.parseInt(System.getProperty("port", "1883"));

    public static void main(String[] args) throws InterruptedException {
        NettyClient client = new NettyClient("fep111", HOST, PORT, MyClientHandler.INSTANCE);
        TimeUnit.SECONDS.sleep(10L);
        client.send("客户端自定义消息");
    }
}
